package com.usian.ai.common.exception.exception;

import com.usian.ai.common.enums.ResultCodeEnum;

/**
 * @TODO:
 * @Author:baimu
 * @Date:2024 12 23 09 46
 **/
public class StartTimeCannotAfterEndTimeException extends RuntimeException{
    ResultCodeEnum resultCodeEnum;

    /**
     * 获取异常的状态码枚举
     *
     * @return ResultCodeEnum类型的状态码枚举
     */
    public ResultCodeEnum getResultCodeEnum() {
        return resultCodeEnum;
    }

    /**
     * 构造函数，初始化异常对象
     *
     * @param resultCodeEnum 异常的状态码枚举
     */
    public StartTimeCannotAfterEndTimeException(ResultCodeEnum resultCodeEnum){
        this.resultCodeEnum = resultCodeEnum;
    }
}
